﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true"
    CodeBehind="DanhSachTaiKhoan.aspx.cs" Inherits="GreenLife.Admin.DanhSachTaiKhoan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <form id="Form1" runat="server">
    <asp:Repeater ID="listUser" runat="server" OnItemCommand="cpRepeaterUser_ItemDataBound">
        <HeaderTemplate>
            <table>
                <thead style="color: Green;">
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="UserName&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="Password&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text="UserStatus&nbsp&nbsp"></asp:Label>
                        </td>
                    </tr>
                </thead>
        </HeaderTemplate>
        <ItemTemplate>
            <tbody>
                <tr>
                    <td>
                        <asp:Label ID="lbSubCateId" runat="server" Text='<%# Bind("UserName") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbCateId" runat="server" Text='<%# Bind("Passwords") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbSubCateName" runat="server" Text='<%# Bind("UsersStatus") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:LinkButton ID="LinkReset" CommandName="reset" OnClientClick='javascript:return confirm("Are you sure you want to reset?")'
                            CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UserName") %>' runat="server">Reset</asp:LinkButton>
                    </td>
                    <td>
                        <asp:LinkButton ID="lnkDelete" CommandName="delete" OnClientClick='javascript:return confirm("Are you sure you want to delete?")'
                            CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UserName") %>' runat="server">Delete</asp:LinkButton>
                    </td>
                </tr>
            </tbody>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
        <asp:Literal ID="ltlPhanTrang" runat="server" />
    </form>
</asp:Content>
